package qnaaction;

import qnainterceptor.BoardDaoAware;
import qnautil.BoardDAO;
import qnautil.BoardVO;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import com.opensymphony.xwork2.Preparable;
//���ͼ��ͷ� ���� DAO�� ���Թ޴� �׼�
public class PasswdChkAction extends ActionSupport implements Preparable, ModelDriven, BoardDaoAware {
	
	private BoardVO vo;
	private BoardDAO dao;
	
	/*
	 * ���ͼ��ͷκ��� dao ��ü�� ���Թޱ� ���� ����ϴ� �޼��� ����..
	 */
	public void setBoardDao(BoardDAO dao){
		System.out.println("점검1-1"+dao);
		this.dao = dao;
	}
	
	@Override
	public void prepare() throws Exception {
		System.out.println("점검1-2"+vo);
		vo = new BoardVO();
	}
	
	public Object getModel(){
		System.out.println("점검1-3"+vo);
		return vo;
	}
		
	public BoardVO getVo() {
		System.out.println("점검1-4"+vo);
		return vo;
	}
	public void setVo(BoardVO vo) {
		System.out.println("점검1-5"+vo);
		this.vo = vo;
	}
		
	@Override
	public String execute() throws Exception {
		System.out.println("점검1-6"+dao);
		return Action.SUCCESS;
	}
}